package com.geektime.hello;

import java.util.*;

public class MapDemo {
    public static void main(String[] args) {

        Map<String, String> map = new HashMap<>();

        map.put("abc", "123");
        map.put("def", "456");

        System.out.println(map);

        String[] str = new String[5];
        List<String> array = new ArrayList<>();
        System.out.println("数组初始化: " + Arrays.toString(str));
        System.out.println("数组初始化: " + array);

        Long l = 12L;
        Integer i = Integer.valueOf(String.valueOf(l));
        System.out.println("i = " + i);
    }
}
